package ${servicePackagePath};

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import ${boPackagePath}.${entityName?cap_first}Bo;
import ${searchBoPackagePath}.${entityName?cap_first}SearchBo;



@Api(tags = "")
public interface ${entityName?cap_first}Service {

    @PostMapping("/${entityName?uncap_first}/list")
    List<${entityName?cap_first}Bo> list(@ApiParam("条件查询请求，不分页") @RequestBody ${entityName?cap_first}SearchBo searchBo);

    @PostMapping("/${entityName?uncap_first}/add")
    void insert(@ApiParam("新增接口") @RequestBody ${entityName?cap_first}Bo ${entityName?uncap_first}Bo);

    @PostMapping("/${entityName?uncap_first}/insertBatch")
    void insertBatch(@ApiParam("批量插入接口") @RequestBody List<${entityName?cap_first}Bo> ${entityName?uncap_first}BoList);

    @PostMapping("/${entityName?uncap_first}/modify")
    void modify(@ApiParam("修改接口") @RequestBody ${entityName?cap_first}Bo ${entityName?uncap_first}Bo);

    @PostMapping("/${entityName?uncap_first}/delete")
    void deleteById(@ApiParam("删除接口") @RequestBody Long id);
}
